<?php
namespace app\home\model;
use think\Model;

class CourseKeyModel extends Model
{
	protected $table  = 'qm_course_key';


	//课程规格 - 最低价格的值
	public function getCourseKeyList($course_id)
	{
		$list = $this->where('course_id', $course_id)->order('add_time')->select();
		if(!empty($list))
		{
			$list = $list->toArray();
		} 
		return $list;
	}

}